package com.example.bigevent.service;

import com.example.bigevent.pojo.User;
import com.example.bigevent.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {
    @Autowired
    private UserMapper userMapper;

    public void add(User user) {
        userMapper.add(user);
    }

    public User findByUsername(String username) {
        return userMapper.findByUsername(username);
    }
}